﻿function GameEventListener() {
     
    this.onAction = function (time, action, mc) {}

    this.onSpaceshipFreeze = function (time, freezeDuration) { }

    this.onRefuel = function (time, refuelCost) { }

    this.onMalfunction = function (time, malfunction) {}
}

function DebugGameEventListener() {

    this.onAction = function (time, action, mc) {
        this.printMassage("onAction3", arguments);
    }

    this.onMalfunction = function (time, malfunction) { this.printMassage("onMalfunction", arguments); }

    this.onSpaceshipFreeze = function (time, freezeDuration) {
        this.printMassage("onSpaceshipFreeze", arguments);
    }

    this.onRefuel = function (time, refuelCost) {
        this.printMassage("onRefuel", arguments);
    }

    this.printMassage = function (title, arrayData) {
        console.log(title, arrayData);
    }
}
DebugGameEventListener.prototype = new GameEventListener();

